import { BaseApi } from "@/api-services/apis/baseApi";
import { SysConfig } from "@/api-services/models/system";

/**
 * 字典数据Api
 */
class SysConfigApi extends BaseApi {
  //获取系统配置
  getSystemConfig = async () => {
    return this.normalGet<SysConfig.SystemConfigInfo>(`/getSystemConfig`, null);
  };
  //更新系统配置
  updateSystemConfig = async (data: SysConfig.SystemConfigInfo) => {
    return this.normalPost<SysConfig.SystemConfigInfo>(`/updateSystemConfig`, data);
  };
}

export default new SysConfigApi("/system/config");
